package com.hnichr.ump.common.ecard.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_ecard_company")
@Schema(description = "公司表")
public class EcardCompany extends UmpEntity {

    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "COMPANY_NAME_")
    @Schema(description = "公司名称")
    private String companyName;

    @Column(name = "URL_")
    @Schema(description = "公司网站地址")
    private String url;

    @Column(name = "INTRODUCTION_",length = 2000)
    @Schema(description = "公司简介")
    private String introduction;

    @Column(name = "LOGO_")
    @Schema(description = "公司logo")
    private String logo;
}
